﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Eventhere.Work
{
    public class Contact : IComparable<Contact>
    {

        public int CompareTo(Contact c)
        {
            if (this == c)
                return 1;
            else
                return -1;
        }
        //CHAMP
        private String mailContact;
        private int idContact;
        private String surName;
        private String lastName;


        public String SurName
        {
            get { return surName; }
            set { surName = value; }
        }
        public String LastName
        {
            get { return lastName; }
            set { lastName = value; }
        }        
        public Contact()
        {

        }
        public Contact(String mail)
        {
            this.mailContact = mail;
        }
        public Contact(int id, string mailcont, string surn, string lastn)
        {
            this.IdContact = id;
            this.MailContact = mailcont;
            this.SurName = surn;
            this.LastName = lastn;
        }

        public int IdContact
        {
            get { return idContact; }
            set { idContact = value; }
        }
        public String MailContact
        {
            get { return mailContact; }
            set { mailContact = value; }
        }

        

    }
}
